﻿using System;
using System.Collections.Generic;
using System.Net;
using ChatClientApp.Classes;
using ChatClientApp.GUI;
using ChatServerApp.Classes;
namespace ChatClientApp.Tools
{
    static class ActiveComponents
    {
        private static List<String> activeContactChat = new List<string>();

        private static List<fChatWindow> activeContactChatWindow = new List<fChatWindow>();

        private static int activeServerPort = 3000;

        private static User_Complete activeUser;

        private static IPEndPoint serverIpEndpoint = new IPEndPoint(IPAddress.Loopback, 1500);

        private static ListeningServer listenServer = null;

        public static List<String> ActiveContactChat
        {
            get { return activeContactChat; }
            set { activeContactChat = value; }
        }

        public static List<fChatWindow> ActiveContactChatWindow
        {
            get { return activeContactChatWindow; }
            set { activeContactChatWindow = value; }
        }

        public static int ActiveServerPort
        {
            get { return activeServerPort; }
            set { activeServerPort = value; }
        }

        public static User_Complete ActiveUser
        {
            get { return ActiveComponents.activeUser; }
            set { ActiveComponents.activeUser = value; }
        }

        public static IPEndPoint ServerIpEndpoint
        {
            get { return serverIpEndpoint; }
            set { serverIpEndpoint = value; }
        }

        public static ListeningServer ListenServer
        {
            get { return listenServer; }
            set { listenServer = value; }
        }
    }

}
